var layoutView;
var wapViewportContent = 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no';
var otherViewportContent = 'width=1140';
function setViewport() {
    layoutView = window.screen.width;
    var viewportContent = layoutView < 768 ? wapViewportContent : otherViewportContent;
    var meta = document.querySelector('meta[name=viewport]');
    if (meta) {
        meta.setAttribute('content', viewportContent);
    } else {
        meta = document.createElement('meta');
        meta.setAttribute('name', 'viewport');
        meta.setAttribute('content', viewportContent);
        document.querySelector('head').insertBefore(meta, document.querySelector('meta').nextSibling);
    }
}
setViewport();
window.addEventListener('resize', function () {
    setViewport();
    autoroll233();
});
function autoroll233() {
    if (layoutView < 768) {
    var list233s = document.querySelectorAll(".tyl-main-left-list>ul>li");
    var Num = 0;
    list233s.forEach(function (list233) {
        Num += list233.clientWidth;
    })
    var ul233 = document.querySelector(".tyl-main-left-list>ul")
    ul233.style.width = Num + 1 + 'px';
  }
}
function Tabs_change() {
    var tabs_xxgk = document.querySelectorAll('.xxgk_zcfg .title h2 a');
    tabs_xxgk.forEach(function (tab) {
        tab.onclick = function (e) {
            if (docEle.getBoundingClientRect().width < 768) {
                e.preventDefault();
            }
        }
    });
}
window.addEventListener('load', function () {
    autoroll233();
    Tabs_change();
});
